package com.wealth.scsj.p_app.adapter;


import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.wealth.scsj.p_app.R;
import com.wealth.scsj.p_app.bean.OrderIndexBean;

import java.util.List;

/**
 * 首页
 */

public class OrderIndexAdapter extends BaseQuickAdapter<OrderIndexBean, BaseViewHolder> {

    public OrderIndexAdapter(List data) {
        super(R.layout.item_index_layout, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, OrderIndexBean item) {

        helper.setText(R.id.orderid_tv, item.getOrderid());
        helper.setText(R.id.time_tv, item.getTime());
        helper.setText(R.id.price_tv, item.getPrice());
        helper.setText(R.id.start_tv, item.getStart());
        helper.setText(R.id.end_tv, item.getEnd());
        helper.setText(R.id.name_tv, item.getName());
        helper.setText(R.id.tel_tv, item.getTel());
        helper.setText(R.id.red_tel_tv, item.getRed_tel());
        helper.addOnClickListener(R.id.make_sure_tv);
    }
}
